package com.example.demo;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.bind.annotation.RequestMapping;

//扫描包注解
@MapperScan(basePackages = {"com.example.demo.mapper"})
//启动类注解
@SpringBootApplication
//事务注解
@EnableTransactionManagement

public class DemoApplication {
    // 用来测试访问
    @RequestMapping("/")
    public String home() {
        return "测试 成功 ！！！";
    }

    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class, args);
    }

}
